﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using AirlineProject.Models;

namespace AirlineProject.Controllers
{
    public class FlightController : Controller
    {
        public ActionResult ListFlight()
        {
            FlightModels fm = new FlightModels();
            ViewData["listflight"] = fm.ListFlight();
            return View();
        }
        public ActionResult InfoFlight(int id)
        {
            FlightModels fm = new FlightModels();
            ViewData["infoflight"] = fm.InfoFlight(id);
            return View();
        }

    }
}
